@import '~@common/css/_variables.scss';

.banner {
  display: flex;
  width: 100%;
  padding-top: 7px;
  flex-direction: column;

  .imgList {
    position: relative;
    height: 198px;

    li {
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 1;
      width: 436px;
      height: 160px;
      overflow: hidden;
      border-radius: 8px;
      transform: translate(-50%, -50%);
      transition: none;

      img {
        width: 100%;
        height: 100%;
      }

      &.active_left {
        left: 0;
        z-index: 1;
        transform: translate(0, -50%);
        transition: all 0.4s ease;
      }

      &.active {
        left: 50%;
        z-index: 3;
        width: 540px;
        height: 198px;
        transform: translate(-50%, -50%);
        transition: all 0.4s ease;
      }

      &.active_right {
        right: 0;
        left: inherit;
        z-index: 2;
        transform: translate(0, -50%);
        transition: all 0.4s ease;
      }

      p {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 3;
        padding: 2px 10px;
        font-size: 11px;
        color: #fff;
        border-radius: 8px 0 8px 0;
      }
    }

    &:hover {
      div {
        opacity: 1;
      }
    }

    div {
      position: absolute;
      top: 50%;
      z-index: 5;
      width: 30px;
      height: 30px;
      pointer-events: none;
      background: rgba(0, 0, 0, 0.2) url('~@images/icon_arrow.svg') center
        center / 20px no-repeat;
      border-radius: 50%;
      opacity: 0;
      transform: translateY(-50%);
      transition: ease 0.25s all;

      &.arrow_prev {
        left: 10px;
        font-size: 20px;
        transform: rotate(-180deg);
      }

      &.arrow_next {
        right: 10px;
        font-size: 20px;
      }
    }
  }

  .pointList {
    display: flex;
    padding-top: 16px;
    align-items: center;
    justify-content: center;

    li {
      width: 6px;
      height: 6px;
      margin: 5px;
      background-color: #e6e6e6;
      border-radius: 50%;

      &.active {
        background-color: $color;
      }
    }
  }
}
